﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


    class Program
    {
        static void Main(string[] args)
        {
            string expression = "((a+b)/5-d))";
            char[] arrExpression = expression.ToCharArray();
            int countOpen=0;
            int countClose=0;
            for (int i = 0; i < arrExpression.Length; i++)
            {
                if (arrExpression[i] == '(')
                {
                    countOpen++;
                }
                else if (arrExpression[i] == ')')
                {
                    countClose++;
                }
            }
            if (countOpen == countClose)
            {
                Console.WriteLine("The breckets are correct!");
            }
            else
            {
                Console.WriteLine("The breckets are incorrect!");
            }
        }
    }

